package com.hw.mapper.sys;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.hw.entity.po.sys.SysRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 角色 Mapper
 *
 * @author whw
 * @date 2021-06-21
 */
public interface SysRoleMapper extends BaseMapper<SysRole> {
    /**
     * 根据用户名获取
     *
     * @param wrapper
     * @return
     */
    List<SysRole> list(@Param(Constants.WRAPPER) QueryWrapper<SysRole> wrapper);
}
